package OnJava8.operators;

/**
 * @Auther DRevelation
 * @Date 2020-05-18 下午 13:53
 * @Desc
 */
public class StringOperators {
    public static void main(String[] args) {
        int x = 0, y = 1, z = 2;
        String s = "x, y, z ";
        System.out.println(s + x + y + z);

        System.out.println(x + " " + s);
        s += "(summed) = ";
        //TODO 括号()可以控制表达式的计算顺序，以便在显示int之前对其进行实际求和
        System.out.println(s + (x + y + z));
        //Integer.toString()方法的简写
        System.out.println("" + x);
    }
}
